package cn.com.shopec.erp.financing.commo;

import cn.com.shopec.erp.financing.entity.CollectSettDetailInfo;
import cn.com.shopec.erp.financing.entity.CollectSettInfo;
import cn.com.shopec.erp.financing.vo.CollectSettDetailVO;
import cn.com.shopec.erp.financing.vo.CollectSettVO;
/**
 * @ClassName: FreightSettlementPropertyUtils
 * @Description: 代收结算单实体表与虚拟表互换
 * @author: xiaoyunfei
 * @date: 2013-5-29 上午9:47:13
 */
public class ProperUteils {
	
	/**
	 * @methodName： getFreightSettlement
	 * @Description: 运费结算单虚拟表转实体表
	 * @param CollectSettInfo
	 * @return CollectSettVO
	 * @author: xiaoyunfei
	 * @date: 2013-5-29 上午9:47:13
	 */
	public static CollectSettVO getCollectSetVo(CollectSettInfo info){
		CollectSettVO vo = new CollectSettVO();
		if(info!=null){
			vo.setId(info.getId());
			vo.setAysNo(info.getAysNo());
			vo.setLcNo(info.getLcNo());
			vo.setLcName(info.getLcName());
			vo.setCreateDate(info.getCreateDate());
			vo.setStratDate(info.getStratDate());
			vo.setEndDate(info.getEndDate());
			vo.setAmount(info.getAmount());
			vo.setFormalities(info.getFormalities());
			vo.setInsurance(info.getInsurance());
			vo.setReceivable(info.getReceivable());
			vo.setAutidStatus(info.getAutidStatus());
			vo.setStStatus(info.getStStatus());
			vo.setStUser(info.getStUser());
			vo.setDeleteFlag(info.getDeleteFlag());	
			vo.setKnotDate(info.getKnotDate());
		}	
		return vo;
	}
	/**
	 * @methodName： getFreightSettlement
	 * @Description: 运费结算单虚拟表转实体表
	 * @param CollectSettDetailInfo
	 * @return CollectSettDetailVO
	 * @author: xiaoyunfei
	 * @date: 2013-5-29 上午9:47:13
	 */
	public static CollectSettDetailVO getCollectSetDetailVo(CollectSettDetailInfo info){		
		CollectSettDetailVO vo = new CollectSettDetailVO();
		if(info!=null){
			vo.setId(info.getId());
			vo.setAysNo(info.getAysNo());
			vo.setAsnNo(info.getAsnNo());
			vo.setCourierNumber(info.getCourierNumber());
			vo.setReceivable(info.getReceivable());
			vo.setOutDate(info.getOutDate());
			vo.setOrderTime(info.getOrderTime());
			vo.setFormalities(info.getFormalities());
			vo.setCycleType(info.getCycleType());
			vo.setDeleteFlag(info.getDeleteFlag());
			vo.setInsurance(info.getInsurance());
			vo.setDeliverDate(info.getDeliverDate());
		}	
		return vo;
	}
	
	
	
	
}
